import request from '@/api/request'

function addCart(data) {
    return request({
        url: '/bufan/cart/addCart',
        method: 'post',
        data
    })
}

function cartList(data) {
    return request({
        url: '/bufan/cart/cartList',
        method: 'get',
        data
    })
}

function deletCart(data) {
    return request({
        url: '/bufan/cart/deleteAction',
        method: 'get',
        data
    })
}

export default ({
    addCart,
    cartList,
    deletCart
})